<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>窗管家</title>
    <meta name="keywords" content="门窗安装、家电维修、家居装饰、家具安装、门窗维修、服务平台、窗管家。">
    <meta name="description" content="窗管家，提供测量、安装、售后维修最专业、高效、便捷的一站式服务平台。">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-title" content="窗管家">
    <link rel="shortcut icon" href="./favicon.png">
    <link rel="apple-touch-icon" href="apple-touch-icon-iphone.png" />
    <link rel="apple-touch-icon" sizes="72x72" href="apple-touch-icon-ipad.png" />
    <link rel="apple-touch-icon" sizes="114x114" href="apple-touch-icon-iphone4.png" />
</head>

<body>
    <script type="text/javascript">
    function getQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) return unescape(r[2]);
        return null;
    }

    // 预订服务
    var url1 = "https://chuanggj.com/reservation/demand";
    // 我的订单
    var url2 = "https://chuanggj.com/mine/list/angular-flatpickr,orders";
    // 个人资料
    var url3 = "https://chuanggj.com/mine/list/zoom,uploadCtrl,personal";
    // 我的钱包
    var url4 = "https://chuanggj.com/mine/list/highcharts,ping,money";

    var query = getQueryString('url_type');
    console.log('query', typeof query, query);
    switch (parseInt(query, 10)) {
        case 1:
            window.location.href = url1;
            break;
        case 2:
            window.location.href = url2;
            break;
        case 3:
            window.location.href = url3;
            break;
        case 4:
            window.location.href = url4;
            break;
        default:
            window.location.href = url1;
            break;
    }
    </script>
</body>

</html>
